package com.xof.phonecall.model

class ToSavePhoneNumberStateTo(
    var mobile: String,
    var orderId: String,
    var userId: String,
    var mobileType: String,
    var product: String,
    var result: String,
    var remark: String
) : ToBase() {
    init {
        this.showLoading = false
    }

    fun isValid(): Boolean {
        if (mobile.isBlank()) {
            println("mobile isBlank")
            return false
        }
        if (orderId.isBlank()) {
            println("orderId isBlank")
            return false
        }
        if (userId.isBlank()) {
            println("userId isBlank")
            return false
        }
        if (mobileType.isBlank()) {
            println("mobileType isBlank")
            return false
        }
        if (product.isBlank()) {
            println("product isBlank")
            return false
        }
        if (result.isBlank()) {
            println("result isBlank")
            return false
        }
        return true
    }
}
